feat: mid-stream language_codes updates, Opus streaming encodings, sync connection pre-warming (v0.64.25)#211
Merged
Conversation
bgotthold-aai
force-pushed
the
1D7569FD6C40A22DDB50154A9AE3A8C1
branch
2 times, most recently
from
July 3, 2026 14:17
e4dc50f to
0026959
Compare
GitOrigin-RevId: e75527160d41d82d1fe4747445db14cd88af3b02
bgotthold-aai
force-pushed
the
1D7569FD6C40A22DDB50154A9AE3A8C1
branch
from
July 3, 2026 14:23
0026959 to
02dee09
Compare
aleks-mitov
approved these changes
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync from the internal repo (2026/07/03), releasing v0.64.25.
Streaming
language_codesmoved toStreamingSessionParameters, so it can now be updated mid-stream viaclient.set_params(StreamingSessionParameters(language_codes=["es"]))— no reconnect needed. Pass[]to clear steering and restore the model's default multilingual code-switching (Universal-3.5 Pro Streaming only). Connect-time behavior is unchanged.language_codesconnect parameter (recommended): steers transcription toward a set of languages while allowing native code-switching among them. The singularlanguage_codeis deprecated (still supported) — pass a single-element list instead.encoding="opus"(raw packet-per-message) andencoding="ogg_opus"accept compressed Opus audio;sample_rateis ignored for both since the Opus stream is self-describing.Sync transcription
SyncTranscriber.warm(): pre-opens the HTTP connection so the firsttranscribe()skips DNS/TCP/TLS setup on the critical path. Newsettings.keepalive_expirycontrols how long idle pooled connections are kept.Tests
set_params, connect-timelanguage_codes, Opus encodings, and connection pre-warming.